<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/public.css">
    <link rel="stylesheet" href="css/home.css">
    <script src="jscript/jquery-2.0.3.js"></script>
    <script src="js/public.js"></script>
    <script src="jscript/echarts.js"></script>
</head>
<body>
<div class="wrap" id="wrap" style="width:400px;height: 400px;border: 1px solid #d8d8d8"></div>
<script>
    $(function(){
        myChart = echarts.init(document.getElementById('wrap'));
        var option = {
            xAxis: {
                type: 'category',
                interval:0,
                data: ['1', '2', '3', '4', '5']
            },
            yAxis: {
                type: 'value'
            },
            dataZoom: {
                show: true,
                realtime: true,
                y: 36,
                height: 20,
                start: 0,
                end: 0
            },
            series: [{
                data: [820, 932, 901, 934, 1290],
                type: 'line'
            },
                {
                    data: [820, 932, 901, 934, 1290],
                    type: 'bar'
                }]
        };
        myChart.setOption(option)
    })
</script>

</body>
</html>